﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="position.aspx.cs" Inherits="EDP.Application.Web.Select.position" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title></title>
</head>
<body>
    <script type="text/javascript">
        document.onkeydown = function (e) {
            if (!e) e = window.event;
            if ((e.keyCode || e.which) == 13) {
                F.f_disable('grid_select_position_ctl00_btn_query');
                __doPostBack('grid_select_position$ctl00$btn_query', '');
            }
        }
    </script>
    <style type="text/css">
        .x-column-header {
            text-align: center;
        }
    </style>
    <form id="form1" runat="server">
        <f:PageManager ID="PageManager" AutoSizePanelID="grid_select_position" runat="server" />
        <f:Grid ID="grid_select_position" runat="server" ShowHeader="false" ShowBorder="false" Margin="0" DataKeyNames="ID,Name" AllowSorting="false" AllowPaging="false" CheckBoxSelectOnly="true" OnPreRowDataBound="grid_positionSelect_PreRowDataBound" OnRowDataBound="grid_positionSelect_RowDataBound">
            <Toolbars>
                <f:Toolbar runat="server" ToolbarAlign="Right" QueryToolbar="true">
                    <Items>
                        <f:DropDownList ID="ddl_type" runat="server" QueryName="PositionTypeId" Margin="0" Width="120" />
                        <f:TextBox ID="tb_name" runat="server" EmptyText="职务名称" QueryName="Name" TextMode="Text" Margin="0 0 0 10" Width="200" />
                        <f:Button ID="btn_query" runat="server" Text=" 查 询 " Icon="SystemSearch" Margin="0 0 0 10" OnClick="QueryClick" />
                        <f:ToolbarFill runat="server" />
                        <f:Button ID="btn_more" runat="server" EnablePermission="false" Text="更多..." EnablePostBack="false">
                            <Menu runat="server" Margin="0">
                                <f:MenuButton ID="btn_cache" runat="server" Margin="0" Text="重置缓存" OnClick="btn_cache_Click" />
                            </Menu>
                        </f:Button>
                    </Items>
                </f:Toolbar>
                <f:Toolbar runat="server" Position="Bottom" ToolbarAlign="Right">
                    <Items>
                        <f:Button ID="btn_determine" runat="server" Text=" 确 定 " Icon="Accept" Margin="0 10 0 0" OnClick="btn_determine_Click" />
                        <f:Button ID="btn_close" runat="server" Text=" 关 闭 " Icon="Cross" Margin="0 10 0 0" EnablePostBack="false" EnablePermission="false" />
                    </Items>
                </f:Toolbar>
            </Toolbars>
            <Columns>
                <f:BoundField DataField="Name" DataSimulateTreeLevelField="LevelsDisplay" DataToolTipField="Name" ExpandUnusedSpace="true" HeaderText="职务名称" />
                <f:BoundField DataField="PositionTypeName" Width="100" HeaderText="职类" />
                <f:BoundField ColumnID="col_GradeLevelsList" DataField="GradeLevelsList" DataToolTipField="GradeLevelsList" Width="240" HeaderText="职级" />
                <f:TemplateField ColumnID="col_GradeList" Width="90" HeaderText="职级" TextAlign="center">
                    <ItemTemplate>
                        <asp:DropDownList ID="ddl_grade" runat="server" Width="80" />
                    </ItemTemplate>
                </f:TemplateField>
            </Columns>
        </f:Grid>
    </form>
</body>
</html>
